#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.common.bean.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * Description: SubPermission
 *
 * @author wupanhua
 * @date 2019/8/6 15:28
 *
 * <pre>
 *              ${copyright}
 *      Copyright (c) 2019. All Rights Reserved.
 * </pre>
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SubPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 当前权限主键
     */
    @ApiModelProperty("当前权限主键")
    private Long key;
    /**
     *权限名称
     */
    @ApiModelProperty("权限名称")
    private String permissionName;
    /**
     *权限类型
     */
    @ApiModelProperty("权限类型")
    private String permissionType;
    /**
     *权限编码
     */
    @ApiModelProperty("权限编码")
    private String permissionCode;
    /**
     *所属菜单主键
     */
    @ApiModelProperty("所属菜单主键")
    private String parentMenuId;
    /**
     *所属菜单名称
     */
    @ApiModelProperty("所属菜单名称")
    private String parentMenu;
    /**
     *当前角色是否此菜单权限
     */
    @ApiModelProperty("当前角色是否此菜单权限")
    private Boolean hasPermission;
    /**
     *角色主键
     */
    @ApiModelProperty("角色主键")
    private Long roleId;

    public SubPermission(Long key, String permissionName, String permissionType, String permissionCode, String parentMenu, Boolean hasPermission) {
        this.key = key;
        this.permissionName = permissionName;
        this.permissionType = permissionType;
        this.parentMenu = parentMenu;
        this.permissionCode = permissionCode;
        this.hasPermission = hasPermission;
    }

}
